home *** CD-ROM | disk | FTP | other *** search
- // smileppg.cpp : Implementation of the CSmilePropPage property page class.
-
- #include "stdafx.h"
- #include "smile.h"
- #include "smileppg.h"
-
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
-
-
- IMPLEMENT_DYNCREATE(CSmilePropPage, COlePropertyPage)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Message map
-
- BEGIN_MESSAGE_MAP(CSmilePropPage, COlePropertyPage)
- //{{AFX_MSG_MAP(CSmilePropPage)
- // NOTE - ClassWizard will add and remove message map entries
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
-
- /////////////////////////////////////////////////////////////////////////////
- // Initialize class factory and guid
-
- IMPLEMENT_OLECREATE_EX(CSmilePropPage, "SMILE.SmilePropPage.1",
- 0xedec4489, 0xc101, 0x101b, 0xac, 0x9d, 0x0, 0xaa, 0x0, 0x47, 0xd4, 0xfd)
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmilePropPage::CSmilePropPageFactory::UpdateRegistry -
- // Adds or removes system registry entries for CSmilePropPage
-
- BOOL CSmilePropPage::CSmilePropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_SMILE_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmilePropPage::CSmilePropPage - Constructor
-
- CSmilePropPage::CSmilePropPage() :
- COlePropertyPage(IDD, IDS_SMILE_PPG_CAPTION)
- {
- //{{AFX_DATA_INIT(CSmilePropPage)
- m_caption = _T("");
- m_sad = FALSE;
- //}}AFX_DATA_INIT
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmilePropPage::DoDataExchange - Moves data between page and properties
-
- void CSmilePropPage::DoDataExchange(CDataExchange* pDX)
- {
- //{{AFX_DATA_MAP(CSmilePropPage)
- DDP_Text(pDX, IDC_CAPTION, m_caption, _T("Caption") );
- DDX_Text(pDX, IDC_CAPTION, m_caption);
- DDP_Check(pDX, IDC_SAD, m_sad, _T("Sad") );
- DDX_Check(pDX, IDC_SAD, m_sad);
- //}}AFX_DATA_MAP
- DDP_PostProcessing(pDX);
- }
-
-
- /////////////////////////////////////////////////////////////////////////////
- // CSmilePropPage message handlers
-